package de.codi.similarity.sparematrix.merger;

import java.util.Map;


public class MaxMerger implements SpareMatrixMerger
{

    @Override
    public double getConfValue(Map<Integer, Double> value)
    {
        double conf = 0;

        for(Integer id : value.keySet()) {
            if(id == 0) {
                continue;
            }
            conf = Math.max(conf, value.get(id));
        }
        return conf;
    }
}
